package com.han.hotelplat.service.emtask;

import java.util.List;
import java.util.Map;

import com.han.hotelplat.pojo.emtask.Emtask;

public interface EmTaskService {
	/**
	 * 
		 * @description	获取已经接单的帮工列表
		 * @author  han1088
		 * @param taskid
		 * @return
	 */
    public List<Emtask> getEmTaskByTakid(String taskid);

	public Map<String, Object> acceptTask(String userid, String taskid, Integer userType,boolean isAccept);

	public Emtask getEmTask(String taskid, String userid);

	public List<Emtask> getEmTaskByUserid(String userid);
	
	public int isAcceptTask(String userid, String taskid);

	public void save(Emtask emt);

	public List<Emtask> getEmTaskByHotelid(String userid, Integer hotelid);

	public void update(Emtask emtold);

	/**
	 * 获取帮工的定点任务
		 * @description	
		 * @author  han1088
		 * @param userid
		 * @return
	 */
	public Emtask getEmFixedTask(String userid);

	Map<String, Object> acceptTaskNew(String userid, String taskid,
			Integer optUserType);
	
}
